import network from "../network/index"

const special = {
    state: {
        detaItems: {}
    },
    mutations: {
        getDeta(state, items) {
            state.detaItems = items;
        }
    },
    actions: {
        getDeta(content) {
            network.getDetails()
                .then(res => {
                    //检测
                    console.log(res.data.data);
                    //赋值
                    content.commit("getDeta", res.data.data)
                })
                .catch(error => {
                    console.log(error);
                });
        }
    },
    modules: {

    }
}

export default special